﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Kxx_API.DNS.ALI.DataModel
{
    public class PageBaseDataModel<T> where T : class, new()
    {
        #region 分页
        /// <summary>
        /// 列表总数
        /// </summary>
        private long? totalCount;
        public long? TotalCount
        {
            get { return totalCount; }
            set { totalCount = value; }
        }

        /// <summary>
        /// 页大小
        /// </summary>
        private long? pageSize;
        public long? PageSize
        {
            get { return pageSize; }
            set { pageSize = value; }
        }

        /// <summary>
        /// 页码
        /// </summary>
        private long? pageNumber;
        public long? PageNumber
        {
            get { return pageNumber; }
            set { pageNumber = value; }
        }

        /// <summary>
        /// 请求ID
        /// </summary>
        public string requestId;
        public string RequestId
        {
            get { return requestId; }
            set { requestId = value; }
        }
        #endregion

        #region 实体列表
        /// <summary>
        /// 域名实体列表
        /// </summary>
        public T Domains;

        /// <summary>
        /// 域名解析记录实体列表
        /// </summary>
        public T DomainRecords;
        #endregion
    }
}
